﻿using System;

namespace DailyFx.Book
{

	public interface IRow 
	{ 
		/// <summary> 
		///		Gets the <see cref="Schema"/> of record fields. 
		/// </summary> 
		Schema Schema { get; }

		/// <summary>
		///		Gets the <see cref="Status"/> of the record .
		/// </summary>
		Status Status { get; }

		/// <summary>
		///		Gets the time key of this record .
		/// </summary>
		DateTime Key { get; }

		/// <summary>
		///		Checks if value of the specified field is not available .
		/// </summary>
		Boolean IsNull ( Int32 index);

		/// <summary> 
		///		Gets value by the specified field. 
		/// </summary> 
		Object this [ Int32 index ] { get; } 
 
		/// <summary> 
		///		Gets value by the specified field. 
		/// </summary> 
		Object this [ String label ] { get; } 
	}

	
}
